<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-07-08
 * Time: 14:47
 */

namespace app\api\validate;


class CheckUserAuth extends BaseValidate
{
    protected $rule = [
        'name' => 'require|max:20',
        'gender' => 'require|in:1,2',
        'nation' => 'require|max:20',
        'residence' => 'require|max:150',
        'birthday' => 'require|max:20',
        'constellation' => 'require|max:20',
        'height' => 'require',
        'weight' => 'require',
        'marriage' => 'require|in:1,2,3',
        'education' => 'require|in:1,2,3,4',
        'unit_natures' => 'require|max:20',
//        'occupation' => 'require|max:50',
        'monthly_income' => 'require|max:20',
        'house' => 'require|in:1,2,3',
        'car' => 'require',
        'loan' => 'require|in:1,2,3',
        'family' => 'require|max:255',
        'hobby' => 'require|max:255',
        'feeling' => 'require|max:255',
        'mate_selection' => 'require|max:255'
    ];

    protected $message = [
        'name' => '请输入姓名且长度不大于20',
        'gender' => '请选择正确的性别',
        'nation' => '请选择所在民族',
        'residence' => '请选择居住地',
        'birthday' => '请选择出生日期',
        'constellation' => '请选择星座',
        'height' => '请输入身高',
        'weight' => '请输入体重',
        'marriage' => '请选择婚姻状态',
        'education' => '请选择学历',
        'unit_natures' => '请选择单位性质',
//        'occupation' => '请输入职业',
        'monthly_income' => '请输入月收入',
        'house' => '请选择购房情况',
        'car' => '请输入车辆数量',
        'loan' => '请选择贷款情况',
        'family' => '请输入家庭介绍',
        'hobby' => '请输入兴趣爱好',
        'feeling' => '请输入感情经历',
        'mate_selection' => '请输入择偶标准',
    ];
}